Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@ui5/logger
Advanced tools
@ui5/logger is a logging library designed for use with the UI5 framework. It provides a simple and flexible way to log messages at different levels (e.g., error, warn, info, verbose, silly) and supports custom loggers and transports.
Basic Logging
This feature allows you to create a logger instance and log messages at different levels such as info and error.
const { getLogger } = require('@ui5/logger');
const log = getLogger('myLogger');
log.info('This is an info message');
log.error('This is an error message');
Custom Log Levels
This feature allows you to define custom log levels and use them in your application.
const { getLogger, createLogger } = require('@ui5/logger');
const customLogger = createLogger({
transports: [
new (require('@ui5/logger').transports.Console)({
level: 'custom'
})
]
});
const log = getLogger('customLogger');
log.custom('This is a custom log level message');
Custom Transports
This feature allows you to create custom transports for logging, such as logging to the console with a specific format.
const { getLogger, createLogger, transports } = require('@ui5/logger');
const customTransport = new transports.Console({
level: 'info',
format: require('@ui5/logger').formats.simple()
});
const customLogger = createLogger({
transports: [customTransport]
});
const log = getLogger('customLogger');
log.info('This is an info message with a custom transport');
Winston is a versatile logging library for Node.js that supports multiple transports, log levels, and formats. It is highly configurable and widely used in the Node.js community. Compared to @ui5/logger, Winston offers more flexibility and a larger ecosystem of plugins and extensions.
Bunyan is a simple and fast JSON logging library for Node.js. It is designed for high-performance logging and provides features like log streams and serializers. Bunyan is more focused on JSON logging compared to @ui5/logger, which offers a more general-purpose logging solution.
Pino is a low-overhead logging library for Node.js that focuses on performance. It provides fast logging with minimal impact on application performance. Pino is suitable for applications where performance is critical, whereas @ui5/logger provides a more feature-rich logging experience.
Internal logging module
Part of the UI5 Tooling
General documentation can of the UI5 Tooling can be found here: sap.github.io/ui5-tooling
Used for logging purposes across the UI5 Tooling and plugins. Features log levels and progress logging. Basically, it is a wrapper of npmlog.
Please check our Contribution Guidelines.
Please follow our Contribution Guidelines on how to report an issue.
See CHANGELOG.md.
This project is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the LICENSE file.
FAQs
UI5 Tooling - Internal Logger
The npm package @ui5/logger receives a total of 213,614 weekly downloads. As such, @ui5/logger popularity was classified as popular.
We found that @ui5/logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.